package oa.hleast.xswl.pojo.vo.blog;

// import com.fasterxml.jackson.databind.annotation.JsonSerialize;
// import com.hleast.common.utils.Date2TsStrSerializer;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * ums_blog_comment 博客评论展示类
 *
 * @author 302
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class UmsBlogCommentVo {

    private Long id;

    /**
     * 评论内容
     */
    private String commentContent;

    /**
     * 评论用户ID
     */
    private Long commentUserId;

    /**
     * 评论用户昵称
     */
    private String commentUserName;
    /**
     * 评论用户头像
     */
    private String commentUserAvatar;
    /**
     * 用户ID
     */
    private Long userId;

    // @JsonSerialize(using = Date2TsStrSerializer.class)
    private Date gmtCreate;

    @ApiModelProperty("系统时间")
    private Long sysTime;

    /**
     * 是否是自己的评论
     */
    private Boolean comment = false;

    /**
     * 子级评论
     */
    List<UmsBlogCommentVo> sonCommentList;
}